﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SupplyChainManagement
{
    /// <summary>
    /// Main form that consists of the option to access inventory or product data, program entry point
    /// </summary>
    public partial class MainForm : Form
    {
        //the connection to the database
        public static string strConnect = "DSN=MySQL;UID=root;PWD=root;DATABASE=cp2011";

        public MainForm()
        {
            InitializeComponent();
        }

        private void btnInventory_Click(object sender, EventArgs e)
        {
            InventoryForm iForm = new InventoryForm(this);
            iForm.Show();
            this.Enabled = false;
        }

        private void btnProduct_Click(object sender, EventArgs e)
        {
            ProductForm prod = new ProductForm(this);
            prod.Show();
            this.Enabled = false;
        }
    }
}
